-- GENERATED SPELL FOR [Scarlet Conjuror] --


function spell0_4297(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4297', 3000, 1)
end

function spell1_4297(pUnit, Event) --@Summon Fire Elemental,Self--
pUnit:FullCastSpellOnTarget(8985,pUnit)
pUnit:RegisterEvent('Sorts_4297', 591, 1)
end

function Sorts_4297(pUnit, Event)
local choix_sorts_4297 = math.random(0, 1)
if choix_sorts_4297 == 0 then
pUnit:RegisterEvent('spell0_4297', 1, 1)
end
if choix_sorts_4297 == 1 then
pUnit:RegisterEvent('spell1_4297', 1, 1)
end
end

function mob4297_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4297', math.random(1500, 3000), 1)
end

function mob4297_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4297_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4297_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4297, 1, 'mob4297_Action')
RegisterUnitEvent(4297, 2, 'mob4297_Leave')
RegisterUnitEvent(4297, 3, 'mob4297_Kill')
RegisterUnitEvent(4297, 4, 'mob4297_Die')
